import 'package:flutter/material.dart';
import 'package:hao_ke/consts/consts.dart';

class RegisterPage extends StatelessWidget {

  const RegisterPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('注册'),
        centerTitle: true,
        backgroundColor: Consts.head_color,
      ),
      body: ListView(
        padding: const EdgeInsets.all(20),
        children: [
          const TextField(decoration: InputDecoration(
            labelText: '用户名',
            hintText: '请输入用户名'
          ),),
          const TextField(
            obscureText: true,
            decoration: InputDecoration(
            labelText: '密码',
            hintText: '请输入密码',
          ),),const TextField(
            obscureText: true,
            decoration: InputDecoration(
            labelText: '确认密码',
            hintText: '请输入密码',
          ),),
          FilledButton(
              onPressed: () {},
              child: Text('注 册')),
        ],
      ),
    );
  }

}